<%= render :partial => "shared/errors", :locals => {:obj => @message} %>
<b><font color="red">※</font></b>は必須項目です。<br >
<% if @to_list -%>
  [メッセージの宛先]<br>
  <%= get_avatar_image(@message.user.profile) %><br>
  <%= link_to @message.user.nick_name, portal_profile_path(@message.user) %>
  <%= hidden_field_tag :to_list, @to_list %>
<% else -%>
  [メッセージの宛先]<font color="red">※</font><br>
  <%= select_tag :to_list,
                 options_from_collection_for_select(current_user.friends,
                                                    :login,
                                                    :login),
                 :multiple => true, :size => 2 %>
<% end -%>
<%= hidden_field_tag :cc_list, '' %>
<br />
<b>---メッセージ送信---</b><br />
[タイトル]<font color="red">※</font><br />
<%= text_field_tag :subject, @message.subject %><br />
[本文]<font color="red">※</font><br />
<%= text_area_tag :body, @message.body, :rows => 3 %><br />
<%= hidden_field_tag :format_type, @format_type %>

<% if false -%>
  <%# TODO: 携帯電話での画像添付を行うか検討 %>
  [添付ファイル]
  No.1: <%= file_field_tag "uploaded_data[]", :class => "file_field" %><br />
  No.2: <%= file_field_tag "uploaded_data[]", :class => "file_field" %><br />
  No.3: <%= file_field_tag "uploaded_data[]", :class => "file_field" %><br />
<% end -%>
